<?php
session_start();
echo('
<div id="titlePageBox">Home</div>

');

if ($_SESSION["valid_login"])
{
    echo "Logged in as: ".$_SESSION["user"]."<br>";
    //Overview statistics
}
else
{
    echo('
    Please sign in to start
    <form method="post" action="?" id="loginForm" autocomplete="off">
        <input type="text"  name="usr"><br>
        <input type="password"  name="pswd"><br>
        <input type="submit"  value="Login"><br>
    </form>');
}

?>

